package acm.蓝桥杯二分前缀;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.TreeSet;

/**
 * 失败版：忘记set会去重
 */
public class 轻重分配 {

    public static void main(String[] args) {
        Reader sc = new Reader();
        int n = sc.nextInt();
        int[] nums=new int[n];
        for (int i = 0; i < nums.length; i++) {
            nums[i]=sc.nextInt();
        }
        System.out.println(fun(nums));
    }

    public static int fun(int[] nums){
        TreeSet<Integer> top = new TreeSet<>();
        TreeSet<Integer> but = new TreeSet<>((o1, o2) -> o2 - o1);
        for (int i = 0; i < nums.length; i++) {
            if (but.size() < nums.length / 2) {
                but.add(nums[i]);
                continue;
            }
            if (but.first() > nums[i]) {
                top.add(but.pollFirst());
                but.add(nums[i]);
            } else {
                top.add(nums[i]);
            }
        }
        return fun(nums.length,top,but);
    }

    public static int fun(int n,TreeSet<Integer> top,TreeSet<Integer> but){
        while (!(top.isEmpty() || but.isEmpty())) {
            Integer min = but.pollLast();
            Integer max = top.pollFirst();
            while(min*2>max){
                if (top.isEmpty())return n;
                max=top.pollFirst();
            }
            n--;
        }
        return n;
    }

    static class Reader {
        private BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        private StringTokenizer tokenizer = new StringTokenizer("");

        private String innerNextLine() {
            try {
                return reader.readLine();
            } catch (IOException ex) {
                return null;
            }
        }

        public boolean hasNext() {
            while (!tokenizer.hasMoreTokens()) {    //内存中没有
                String nextLine = innerNextLine();
                if (nextLine == null) {     //且没有下一行
                    return false;
                }
                tokenizer = new StringTokenizer(nextLine);  //读入一行
            }
            return true;
        }

        public String nextLine() {
            tokenizer = new StringTokenizer("");    //清空内存中的字符
            return innerNextLine();
        }
        public void clear(){
            tokenizer = new StringTokenizer("");
        }

        public String next() {
            hasNext();
            return tokenizer.nextToken();
        }

        public int nextInt() {
            return Integer.parseInt(next());
        }

        public long nextLong() {
            return Long.parseLong(next());
        }

        public double nextDouble(){
            return Double.parseDouble(next());
        }
//    public BigInteger nextBigInt() {
//        return new BigInteger(next());
//    }
    }

}
